package com.dormitory.management.system.entity;

import java.math.BigDecimal;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 水电费用表
 * </p>
 *
 * @author
 * @since 2021-12-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Cost对象", description="水电费用表")
public class Cost implements Serializable {

    private static final long serialVersionUID = 1L;


    @ExcelProperty("房间号")
    @ApiModelProperty(value = "关联房间表id")
    private Long roomId;

    @ExcelProperty("电费")
    @ApiModelProperty(value = "电费")
    private BigDecimal costElectric;

    @ExcelProperty("水费")
    @ApiModelProperty(value = "水费")
    private BigDecimal costWater;

    @ExcelProperty("总费用")
    @ApiModelProperty(value = "水电费总计")
    private BigDecimal costTotal;

    @ExcelProperty("电流量")
    @ApiModelProperty(value = "电流量（kW·h）")
    private BigDecimal quantityElectric;

    @ExcelProperty("水流量")
    @ApiModelProperty(value = "水流量（m³）")
    private BigDecimal quantityWater;

    @ApiModelProperty(value = "缴费状态（0：未缴费，1：已缴费）")
    private Integer status;

    @ApiModelProperty(value = "状态（0：正常，1：禁用）")
    @TableLogic
    private Integer statusId;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "水电费id")
    @TableId(value = "id", type = IdType.NONE)
    private Long id;

    @ApiModelProperty(value = "创建日期")
    private Date gmtCreate;

    @ApiModelProperty(value = "结束日期")
    private Date gmtEnd;
}